@echo off
setlocal
rem
rem Runs data demo from Frontier SDK tutorial
rem
::
:: Frontier SDK configuration
::
call "C:\Program Files\Parabon\FrontierSDK\bin\Env.bat"
::
:: Demo environment
::
set DEMO_HOME=%FRONTIER_SDK_HOME%\demo\native
::
:: Check for mode flag
::
set MODE=local
if "%1"=="-remote" (
   set MODE=remote
   shift
)
if "%1"=="-simulator" (
   set MODE=simulator
   shift
)
::
:: Run the application
::
cd "%DEMO_HOME%"
java ^
    -classpath ^
    "%DEMO_HOME%;%DEMO_HOME%\nativeApp.jar;%DEMO_HOME%\nativeTask.jar;%FRONTIER_SDK_HOME%\lib\frontier-sdk.jar" ^
    "-Dfrontier.configuration=%FRONTIER_SDK_HOME%\conf\frontier.properties" ^
    "-Dlog4j.configuration=demo.log4j.properties" ^
    "-Ddemo.home=%DEMO_HOME%" ^
    "-Dmode=remote" ^
    NativeApp launch listen
